package com.dreammakerteam.frameworkdemo.qzhj.domain;

import java.io.Serializable;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;

/**
 * <p>
 * 清真泛化产品
 * </p>
 *
 * @author Yanghu
 * @since 2017-10-11
 */
@TableName("d_qzhj_product")
public class DQzhjProductDo extends Model<DQzhjProductDo> {


	private static final long serialVersionUID = 817985187786769578L;
	/**
     * id
     */
	private Long id;
    /**
     * 产品名
     */
	@TableField("prod_name")
	private String prodName;
    /**
     * 类型
     */
	@TableField("type_id")
	private Long typeId;
    /**
     * 描述
     */
	private String detailed;
    /**
     * 来源描述
     */
	private String source;
	/**
	 * 地区-省
	 */
	@TableField("city_id")
	private Long cityId;
	/**
	 * 地区-市
	 */
	@TableField("province_id")
	private Long provinceId;
	/**
	 * 地区-区
	 */
	@TableField("area_id")
	private Long areaId;

    /**
     * 商品链接
     */
	private String url;

    /**
     * 创建日期
     */
	@TableField("create_time")
	private Date createTime;
    /**
     * 邮箱
     */
	private String email;
    /**
     * 手机号
     */
	private String phone;
    /**
     * 姓名
     */
	private String name;
    /**
     * 状态
     */
	private Integer state;


	@Override
	protected Serializable pkVal() {
		return this.id;
	}

    public String getUrl() {
        return url;
    }

    @Override
    public String toString() {
        return "DQzhjProductDo{" +
                "id=" + id +
                ", prodName='" + prodName + '\'' +
                ", typeId=" + typeId +
                ", detailed='" + detailed + '\'' +
                ", source='" + source + '\'' +
                ", cityId=" + cityId +
                ", provinceId=" + provinceId +
                ", areaId=" + areaId +
                ", url='" + url + '\'' +
                ", createTime=" + createTime +
                ", email='" + email + '\'' +
                ", phone='" + phone + '\'' +
                ", name='" + name + '\'' +
                ", state=" + state +
                '}';
    }

    public DQzhjProductDo setUrl(String url) {
        this.url = url;
        return this;
    }

    public Long getId() {
		return id;
	}

	public DQzhjProductDo setId(Long id) {
		this.id = id;
		return this;
	}

	public String getProdName() {
		return prodName;
	}

	public DQzhjProductDo setProdName(String prodName) {
		this.prodName = prodName;
		return this;
	}

	public Long getTypeId() {
		return typeId;
	}

	public DQzhjProductDo setTypeId(Long typeId) {
		this.typeId = typeId;
		return this;
	}

	public String getDetailed() {
		return detailed;
	}

	public DQzhjProductDo setDetailed(String detailed) {
		this.detailed = detailed;
		return this;
	}

	public String getSource() {
		return source;
	}

	public DQzhjProductDo setSource(String source) {
		this.source = source;
		return this;
	}

	public Long getAreaId() {
		return areaId;
	}

	public DQzhjProductDo setAreaId(Long areaId) {
		this.areaId = areaId;
		return this;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public DQzhjProductDo setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}

	public String getEmail() {
		return email;
	}

	public DQzhjProductDo setEmail(String email) {
		this.email = email;
		return this;
	}

	public String getPhone() {
		return phone;
	}

	public DQzhjProductDo setPhone(String phone) {
		this.phone = phone;
		return this;
	}

	public String getName() {
		return name;
	}

	public DQzhjProductDo setName(String name) {
		this.name = name;
		return this;
	}

	public Integer getState() {
		return state;
	}

	public DQzhjProductDo setState(Integer state) {
		this.state = state;
		return this;
	}

    public Long getCityId() {
        return cityId;
    }

    public DQzhjProductDo setCityId(Long cityId) {
        this.cityId = cityId;
        return this;
    }

    public Long getProvinceId() {
        return provinceId;
    }

    public DQzhjProductDo setProvinceId(Long provinceId) {
        this.provinceId = provinceId;
        return this;
    }
}
